/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package cconverter;

import java.awt.Image;
import java.awt.Toolkit;
import javax.swing.ImageIcon;

/**
 *
 * @author SapunBoj
 */
public class Flags extends ImageIcon {

    public Flags() {
        //empty constructor
    }

    public ImageIcon Flags(String currency) {
        currency.toLowerCase();
        Image img = Toolkit.getDefaultToolkit().getImage(this.getClass().getResource("resources/flags/" + currency + ".png"));
        ImageIcon imgicon = new ImageIcon();
        imgicon.setImage(img);
        return imgicon;
    }
}
